Saltar para o conteúdo principal
POST
/
public
/
v1
/
segment-service
/
segments
/
{segment-id}
/
upload
[BETA] Upload users to a segment.
curl --request POST \
  --url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Autorizações

Authorization
string
header
obrigatório

A valid API key generated in Topsort's UI.

Parâmetros de caminho

segment-id
string
obrigatório

The external ID of the segment.

Parâmetros de consulta

action
enum<string>
padrão:add

The action to perform on the segment.

Opções disponíveis:
add,
remove,
replace

Corpo

multipart/form-data
file
file
obrigatório

Resposta

Successful Response